export const minMessage = (value: string, min: number) => {
  return `${value}太短，请至少输入${min}个字符`;
};

export const requireStringMessage = (value: string) => {
  return `请输入${value}字符串`;
};

export const requireNumberMessage = (value: string) => {
  return `请输入${value}数字`;
};

export const valueInMessage = (value: string[]) => {
  return `请传入 ${value.join("/")} 其中的值`;
};

export default {
  min: minMessage,
  require: {
    string: requireStringMessage,
    number: requireNumberMessage,
  },
  valueIn: valueInMessage,
};
